package com.miao.common.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * 进货记录表(Purchase)表实体类
 *
 * @author MiaoWenqing
 * @since 2021-02-03 15:47:34
 */
@SuppressWarnings("serial")
public class Purchase extends Model<Purchase> {
    //进货单号
    @TableId(type = IdType.ASSIGN_ID)
    private String purId;
    //商品ID
    private String proId;
    //生产日期
    private Date proManu;
    //保质期
    private Integer proGuarantee;
    //进货日期
    private Date purDate;
    //进货量
    private Integer purNumber;
    //保质期单位 天  月 年
    private String proGuarUnit;
    //店铺id
    private String storeId;


    public String getPurId() {
        return purId;
    }

    public void setPurId(String purId) {
        this.purId = purId;
    }

    public String getProId() {
        return proId;
    }

    public void setProId(String proId) {
        this.proId = proId;
    }

    public Date getProManu() {
        return proManu;
    }

    public void setProManu(Date proManu) {
        this.proManu = proManu;
    }

    public Integer getProGuarantee() {
        return proGuarantee;
    }

    public void setProGuarantee(Integer proGuarantee) {
        this.proGuarantee = proGuarantee;
    }

    public Date getPurDate() {
        return purDate;
    }

    public void setPurDate(Date purDate) {
        this.purDate = purDate;
    }

    public Integer getPurNumber() {
        return purNumber;
    }

    public void setPurNumber(Integer purNumber) {
        this.purNumber = purNumber;
    }

    public String getProGuarUnit() {
        return proGuarUnit;
    }

    public void setProGuarUnit(String proGuarUnit) {
        this.proGuarUnit = proGuarUnit;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.purId;
    }
}